package com.zzs.client.dao.mysql;

import com.zzs.common.core.entity.mysql.ProblemCodeDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author zzs
 * @date 2025/03/27
 */
@Mapper
public interface ProblemCodeMapper {
    @Select("select problem_id, language, main_function, user_function from problem_code where problem_id = #{problemId} and language = #{language}")
    ProblemCodeDO getProblemCode(@Param("problemId") long problemId, @Param("language") int language);
}
